package com.rf.bean;

/**
 * @Description
 * @Author rf
 * @Date 2022/4/2
 */
public class Student {
    private int ID;
    private int stuNumber;
    private String stuName;
    private int stuAge;
    private String stuMajor;

    //必须有


    public Student() {
    }

    public Student(int ID, int stuNumber, String stuName, int stuAge, String stuMajor) {
        this.ID = ID;
        this.stuNumber = stuNumber;
        this.stuName = stuName;
        this.stuAge = stuAge;
        this.stuMajor = stuMajor;
    }


    public int getID() {
        return ID;
    }

    public void setID(int ID) {
        this.ID = ID;
    }

    public int getStuNumber() {
        return stuNumber;
    }

    public void setStuNumber(int stuNumber) {
        this.stuNumber = stuNumber;
    }

    public String getStuName() {
        return stuName;
    }

    public void setStuName(String stuName) {
        this.stuName = stuName;
    }

    public int getStuAge() {
        return stuAge;
    }

    public void setStuAge(int stuAge) {
        this.stuAge = stuAge;
    }

    public String getStuMajor() {
        return stuMajor;
    }

    public void setStuMajor(String stuMajor) {
        this.stuMajor = stuMajor;
    }

    @Override
    public String toString() {
        return "Student{" +
                "ID=" + ID +
                ", stuNumber=" + stuNumber +
                ", stuName='" + stuName + '\'' +
                ", stuAge=" + stuAge +
                ", stuMajor='" + stuMajor + '\'' +
                '}';
    }
}
